package com.ruoyi.common.enums;

/**
 * @Author wy
 * @Description websocket消息的类型枚举
 * @Date 2023/11/27 14:21
 * @Version 1.0
 */

public enum WebSocketType {
    CONNECT(0,"connect"),
    DEVICE_INFO(1,"device_info"),
    LIMIT(10,"limit");

    private final Integer code;
    private final String info;

    WebSocketType(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }
}
